package com.qst.nimingneibulei;

public class Test01 {
    public static void main(String[] args) {
        new Test01(){
            private void Setname(String name){
                String name1=name;
                System.out.println("设置名字为"+name1);
            }
        }.Setname("小明");
    }
}
